package cn.thoughtworks.school.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


@FeignClient(name = "${feign.userCenter.name}",
        url = "${feign.userCenter.url}")
@Service
public interface UserCenterFeign {


    @PostMapping("api/password-reset")
    ResponseEntity cretePasswordResetEmail(@RequestBody Map emailInfo);

    @PutMapping("api/password-reset")
    ResponseEntity resetPassword(@RequestBody Map passwordInfo);
}
